<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 网页头部开始 -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
	<div class="navbar-header">
		<button type="button" class="navbar-toggle collapsed"
			data-toggle="collapse" data-target="#navbar" aria-expanded="false"
			aria-controls="navbar">
			<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span>
			<span class="icon-bar"></span> <span class="icon-bar"></span>
		</button>
		<a class="navbar-brand" href="#">LOGO</a>
	</div>
	<div id="navbar" class="navbar-collapse collapse">
		<ul class="nav navbar-nav navbar-right">
			<li><a href="${rootPath }">首页</a></li>
			<c:choose>
				<c:when test="${sessionScope.users != null }">
					<%-- 登陆 --%>
					<li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">
							配置
							<span class="caret"></span>
						</a>
						<ul class="dropdown-menu">
							<li><a href="card_list.html">查看个人信息</a></li>
							<li><a href="card_insert.html">修改</a></li>
						</ul>
					</li>
					<li><a href="${rootPath }/login.htm" onclick="return confirm('确认退出吗?')">退出</a></li>
				</c:when>
				<c:otherwise>
				<%-- 没有登陆 --%>
					<li><a href="${rootPath }/login.htm">登陆</a></li>
					<li><a href="${rootPath }/regsiter.htm">注册</a></li>
				</c:otherwise>
			</c:choose>
		</ul>
		<form class="navbar-form navbar-right visible-sm">
			<input type="text" class="form-control" placeholder="Search...">
		</form>
	</div>
</div>
</nav>